projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b363e
)
fix type hints error kind
author
Andrea Corallo
<akrl@sdf.org>
Fri, 22 Nov 2019 13:00:02 +0000
(14:00 +0100)
committer
Andrea Corallo
<akrl@sdf.org>
Wed, 1 Jan 2020 10:38:08 +0000
(11:38 +0100)
lisp/emacs-lisp/comp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/comp.el
b/lisp/emacs-lisp/comp.el
index 666d467051ef4fe7bfb5b10fea4629f4a8624c98..5ebaf9f0f5a01986e7348a5f1fd029b7e31ca7b2 100644
(file)
--- a/
lisp/emacs-lisp/comp.el
+++ b/
lisp/emacs-lisp/comp.el
@@
-1789,10
+1789,12
@@
Prepare every function for final compilation and drive the C back-end."
;; are assumed just to be true. Use with extreme caution...
(defun comp-hint-fixnum (x)
- (cl-assert (fixnump x)))
+ (unless (fixnump x)
+ (signal 'wrong-type-argument x)))
(defun comp-hint-cons (x)
- (cl-assert (consp x)))
+ (unless (consp x)
+ (signal 'wrong-type-argument x)))
\f
;; Some entry point support code.